package com.daimajia.slider.library.Animations;

import android.view.View;

import com.daimajia.slider.library.R;

public class NoDescriptionAnimation implements BaseAnimationInterface {

	@Override
	public void onPrepareCurrentItemLeaveScreen(View current) {

		View descriptionLayout = current.findViewById(R.id.description_layout);
		if (descriptionLayout != null) {
			current.findViewById(R.id.description_layout).setVisibility(View.GONE);
		}

	}

	@Override
	public void onPrepareNextItemShowInScreen(View next) {

		View descriptionLayout = next.findViewById(R.id.description_layout);
		if (descriptionLayout != null) {
			next.findViewById(R.id.description_layout).setVisibility(View.GONE);
		}

	}

	@Override
	public void onCurrentItemDisappear(View view) {

	}

	@Override
	public void onNextItemAppear(View view) {
		View descriptionLayout = view.findViewById(R.id.description_layout);
		if (descriptionLayout != null) {
			view.findViewById(R.id.description_layout).setVisibility(View.GONE);
		}
	}

}
